﻿using Microsoft.AspNetCore.SignalR;
using System;
using System.Threading.Tasks;

namespace Longbow.Web.SignalR
{
    /// <summary>
    /// 异常 SignalR 通知消息接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ISignalRExceptionFilterHandler<T> where T : Hub
    {
        /// <summary>
        /// 发送数据方法
        /// </summary>
        /// <param name="hub"></param>
        /// <param name="ex"></param>
        Task SendAsync(IHubContext<T> hub, Exception ex);
    }
}
